package com.cj.netlibrary.okhttp.interceptor

import okhttp3.Interceptor
import okhttp3.Response

/**
 *created by chen jun
 *on 2021/5/25 11:40
 */
class AddRequestHeaderInterceptor:Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val request = chain.request().newBuilder()
            .addHeader("HeaderKey","headerValue")
            .build()
        return chain.proceed(request)
    }
}